projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e48b5
)
On UNIX, there's no reason to spin on the select. Wait at least a character
author
robertl
<robertl>
Mon, 1 Nov 2004 17:34:28 +0000
(17:34 +0000)
committer
robertl
<robertl>
Mon, 1 Nov 2004 17:34:28 +0000
(17:34 +0000)
time before looking again.
jeeps/gpsserial.c
patch
|
blob
|
history
diff --git
a/jeeps/gpsserial.c
b/jeeps/gpsserial.c
index 1953500d2e6666905536aeaf9e8a38ecbe9f5aa7..b2a51bb22c46704437b0c452f21b1b639abb7429 100644
(file)
--- a/
jeeps/gpsserial.c
+++ b/
jeeps/gpsserial.c
@@
-456,7
+456,7
@@
int32 GPS_Serial_Chars_Ready(int32 fd)
FD_SET(fd,&rec);
t.tv_sec = 0;
- t.tv_usec = 0;
+ t.tv_usec =
100
0;
(void) select(fd+1,&rec,NULL,NULL,&t);
if(FD_ISSET(fd,&rec))
return 1;